.class Lcom/waiqin365/lightapp/sales/z;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/sales/SalesListActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/sales/SalesListActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/sales/z;->a:Lcom/waiqin365/lightapp/sales/SalesListActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/z;->a:Lcom/waiqin365/lightapp/sales/SalesListActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/sales/SalesListActivity;->b(Lcom/waiqin365/lightapp/sales/SalesListActivity;)Ljava/util/List;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/sales/z;->a:Lcom/waiqin365/lightapp/sales/SalesListActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/sales/SalesListActivity;->a(Lcom/waiqin365/lightapp/sales/SalesListActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->getHeaderViewsCount()I

    move-result v1

    sub-int v1, p3, v1

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/sales/c/a;

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/sales/z;->a:Lcom/waiqin365/lightapp/sales/SalesListActivity;

    const-class v3, Lcom/waiqin365/lightapp/sales/SalesDetailActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "sales"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/z;->a:Lcom/waiqin365/lightapp/sales/SalesListActivity;

    const/16 v2, 0x71

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/sales/SalesListActivity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/sales/z;->a:Lcom/waiqin365/lightapp/sales/SalesListActivity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/sales/SalesListActivity;->overridePendingTransition(II)V

    return-void
.end method
